package org.apache.rocketmq.console.script.dao;

import java.util.List;

import org.apache.rocketmq.console.script.model.DeptInfo;
import org.springframework.data.repository.CrudRepository;

public interface DeptInfoDao extends CrudRepository<DeptInfo, Integer> {
	@SuppressWarnings("unchecked")
	DeptInfo save(DeptInfo entity);

	List<DeptInfo> findAll();

	DeptInfo findOneByCode(String code);

}
